<?php require_once 'head.html';?>
        <div class="span9">
		 
		  
		        <div>

  <!-- Nav tabs -->
  <ul class="nav nav-tabs" role="tablist">
    <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">音乐播放器</a></li>
    <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">其他</a></li>
  </ul>

  <!-- Tab panes -->
  <div class="tab-content">
  
<!--  音乐播放器 -->
    <div role="tabpanel" class="tab-pane active" id="home">
    
 <div class="row-fluid">
			<div class="page-header">
				<h1>虾米音乐播放器 <small> XiaMi Music</small></h1>
			</div>
			
			<table class="table table-striped table-bordered table-condensed">
				<thead>
					<tr>
						<th>序号</th>
						<th>虾米ID</th>
						<th>歌曲名</th>
						<th>时间</th>
						<th>作者</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				<script>			
								</script>
				<?php  $i=1; foreach($music as $mp3){?>
				<tr class="list-upload">
					<td><?php echo $i;?></td>
					<td><?php echo $mp3['rlink'];?></td>
					<td><?php echo $mp3['title'];?></td>
					<td><?php echo date('Y-m-d h:i:s', $mp3['times']);?></td>
					<td><?php echo $mp3['athor'];?></td>
					<td><a style="text-decoration:none;cursor:pointer;" onclick='if (confirm("确定删除？") == true){location.href="?c=template&ip=del&id=<?php echo $mp3['id'];?>";}'>删除</a></td>
				</tr>
				<?php $i++;}?>
					
				</tbody>
			</table>
			<div class="pagination">
				<ul>
				<?if ($p !== 1){?>
					<li><a href="?c=template&p=<?php echo $break;?>">上页</a></li><?php }?>
					
				  <?php pagenum_xiami($pageCount, $p, 10);?>
				
					<?if ($p !== $pageCount){?><li><a href="?c=template&p=<?php echo $next;?>">下页</a></li><?php }?>

				</ul>
			</div>
		

			<form class="form-horizontal" action="?c=template" method="post">
				<fieldset>
					<div class="control-group">
						<label class="control-label" for="xiami_music">*歌曲名</label>
						<div class="controls">
							<input name="xiami_music" type="text" class="input-xlarge" id="xiami_music" placeholder="这首歌的名字.."/>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="xiami_id">*虾米ID</label>
						<div class="controls">
							<input name="xiami_id" type="text" class="input-xlarge" id="xiami_id" placeholder="虾米歌曲的ID.."/>
						</div>
					</div>
					<div class="form-actions">
						<input name="xiami_add" type="submit" class="btn btn-success btn-large" value="添加歌曲" /> <a class="btn" href="?c=index">返回仪表盘</a>
					</div>					
				</fieldset>
			</form>
			
			
			
			
			
			
		  </div>

</div>
<!--    /. 音乐播放器 -->

<!--     其他配置 -->
    <div role="tabpanel" class="tab-pane" id="profile">
    
 <div class="row-fluid">
			<div class="page-header">
				<h1>其他配置 <small>All Config</small></h1>
			</div>
			<form class="form-horizontal" action="?c=template" method="post" enctype="multipart/form-data">
				<fieldset>
				<div class="control-group">
						<label class="control-label" for="talk_ch">是否开启音乐播放器</label>
						<div class="controls">
							<input type="radio" name="talk_ch" id="blankRadio1" value="1" aria-label="..."  <?php if($site['talk_ch']){echo 'checked="checked"';}?> > 开启  <input type="radio" name="talk_ch" id="blankRadio1" value="0" aria-label="..." <?php if(!$site['talk_ch']){echo 'checked="checked"';}?> > 关闭
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="talk_rec">最新心情显示条目</label>
						<div class="controls">
							<input type="text" name="talk_rec" class="input-xlarge" id="talk_rec" value="<?php echo $site['talk_rec'];?>" />
						</div>
					</div>
					<div class="form-actions">
						<input name="all_sub" type="submit" class="btn btn-success btn-large" value="保存设置" /> <a class="btn" href="?c=index">返回仪表盘</a>
					</div>					
				</fieldset>
			</form>
		  </div>

    </div>
<!--    /. 其他配置 -->

  </div>

</div>
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
        </div>
      </div>

      <hr>

      <?php require_once 'foot.html';?>

    </div>

    <script src="Delivery/js/jquery.js"></script>
	<script src="Delivery/js/bootstrap.min.js"></script>
  </body>
</html>
